/*
 * IPerson.h
 *
 *  Created on: 09.05.2010
 *      Author: king
 */

#ifndef PERSONWIDGET_H_
#define PERSONWIDGET_H_

#include "ui_PersonWidget.h"
#include "Person.h"

namespace etu {
namespace ui {

using etu::common::Date;
using etu::genealogy_tree::Person;
using etu::genealogy_tree::Gender;

class CPersonWidget: public QWidget, public Ui::PersonWidget
{
   Q_OBJECT

   Person* m_person;

   void showData();
   void resetData();
   void setDate(QLineEdit* edit, QDate date);
   void changeDethDateState();

public:
   CPersonWidget(QWidget *parent =0);

   void setPerson(Person* person);
   Person* getPerson();
};

}
}

#endif /* IPERSON_H_ */
